﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Syntezator_mowy.Extras;

namespace Syntezator_mowy.Transmiter
{
    public class FileTransmiter
    {
        private SynchrBuffer<InputParameters> bufor;
        private bool endTransmit;

        public FileTransmiter(ref SynchrBuffer<InputParameters> bufor)
        {
            this.bufor = bufor;
            this.endTransmit = false;
        }

        public void run(object daneWejsciowe)
        {
            InputParameters dane = daneWejsciowe as InputParameters;
            if (dane != null) bufor.dodaj(dane);
        }
    }
}
